<script setup>
// 可以在这里添加交互逻辑
</script>

<template>
    <div class="section-main">
        <div class="avatar">
            <img src="@/assets/images/blog_avatar.jpg" alt="后伊 - 鎻然的头像">
        </div>
        <div class="info">
            <h2>后伊 - 鎻然</h2>
            <p>索然所幸, 我遇见了你</p>
        </div>
        <div class="contact">
            <span>Gitee</span>
            <span>Bilibili</span>
            <span>Blog</span>
            <span>QQ</span>
        </div>
        <div class="tags">
            <span class="tag">前端开发</span>
            <span class="tag">Vue.js</span>
            <span class="tag">CSS艺术</span>
            <span class="tag">生活随笔</span>
        </div>
    </div>
</template>

<style lang="scss" scoped>
.section-main {
    width: 800px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .avatar {
        width: 250px;
        height: 250px;
        border: 3px solid #fff;
        border-radius: 50%;
        margin-bottom: 30px;
        transition: transform 0.3s ease;

        &:hover {
            transform: scale(1.05);
        }

        img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
    }

    .info {
        text-align: center;
        margin-bottom: 40px;
        color: #40485b;

        h2 {

            font-size: 30px;
            font-weight: 600;
            margin: 10px 0;
        }

        p {
            font-size: 20px;
            font-weight: 500;
            margin: 10px 0;
        }
    }

    .contact {
        display: flex;
        gap: 20px;
        margin-bottom: 40px;

        span {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #166088;
            transition: all 0.3s ease;
            cursor: pointer;

            &:hover {
                background: #fff;
                transform: translateY(-3px);
            }
        }
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        max-width: 500px;

        .tag {
            padding: 8px 16px;
            background-color: rgba(255, 255, 255, 0.9);
            color: #166088;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;

            &:hover {
                background-color: #fff;
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }
        }
    }
}
</style>